//
//  MBProgressHUD+MJ.h
//
//  Created by mj on 13-4-18.
//  Copyright (c) 2013年 itcast. All rights reserved.
//

#import "MBProgressHUD.h"

@interface MBProgressHUD (MJ)

/**
 请求成功

 @param success 提示成功语
 @param view view
 */
+ (void)mj_showSuccess:(NSString *)success toView:(UIView *)view;

/**
 请求失败

 @param error 提示失败语
 @param view view
 */
+ (void)mj_showError:(NSString *)error toView:(UIView *)view;

/**
 加载菊花框

 @param message 提示语
 @param view view
 @return mb
 */
+ (MBProgressHUD *)mj_showMessage:(NSString *)message toView:(UIView *)view;

/**
 加载菊花框  默认wnd

 @param message 提示语
 @return mb
 */
+ (MBProgressHUD *)mj_showMessage:(NSString *)message;

/**
 不知道是啥意思

 @param message 提示语
 @return mb
 */
+ (MBProgressHUD *)mj_showWithOnlyMessage:(NSString *)message;

/**
 加载默认菊花狂

 @return mb
 */
+ (MBProgressHUD *)mj_showLoading;

+ (MBProgressHUD *)mj_showLoadingInView:(UIView *)view;


/**
 默认提示成功菊花狂

 @param success 成功预言
 */
+ (void)mj_showSuccess:(NSString *)success;

/**
 默认提示失败菊花狂

 @param error 失败语言
 */
+ (void)mj_showError:(NSString *)error;


/**
 隐藏所在view的菊花狂

 @param view view
 */
+ (void)mj_hideHUDForView:(UIView *)view;

/**
 隐藏所有
 */
+ (void)mj_hideHUD;
/**
 不显示菊花狂
 
 @param error e
 */
+ (void)zr_showError:(NSString *)error;
@end
